package com.xbongbong.admin.domain.entity;

import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author xingxing.xiao
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class MirrorAppEntity extends Entity {
    private static final long serialVersionUID = -8434040120487226157L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 来源应用主键id
     */
    private Long sourceAppId;
    /**
     * 镜像配置id
     */
    private Long mirrorId;
    /**
     * 应用名称
     */
    private String name;

    /**
     * 应用图标
     */
    private String icon;

    /**
     * 颜色，16进制色，如 FF0000
     */
    private String color;

    /**
     * 应用类型，1为saas应用，2为自建应用
     */
    private Integer saasMark;

    /**
     * 排序字段
     */
    private Integer sort;

    /**
     * 创建者userId
     */
    private String creatorId;

    /**
     * 创建时间时间戳
     */
    private Long addTime;

    /**
     * 更新时间时间戳
     */
    private Long updateTime;

    /**
     * 删除标记
     */
    private Integer del;

    /**
     * saas应用标示，如crm
     */
    private String alias;

    /**
     * 是否启用，1启用，0不启用
     */
    private Integer enable;

    public MirrorAppEntity(Long sourceAppId, Long mirrorId, String name, String icon, String color, Integer saasMark, Integer sort, Integer del, String alias, Integer enable, String creatorId) {
        this.sourceAppId = sourceAppId;
        this.mirrorId = mirrorId;
        this.name = name;
        this.icon = icon;
        this.color = color;
        this.saasMark = saasMark;
        this.sort = sort;
        this.del = del;
        this.alias = alias;
        this.enable = enable;
        this.creatorId = creatorId;
    }
}
